<template>
   <div>
       <!-- {{dlist}} -->
       <!-- <select name="" id="">
           <option :value="i.cid" v-for="i in list1" @click="shijaio(i.cid)">{{i}}</option>
       </select> -->
       <p v-for="i in list2">
           <video width="300" height="200" :src="'http://localhost:5000/static/upload/'+id+'/'+i" controls="controls" autoplay="autoplay"  muted ></video>
       </p>
       
   </div>
</template>

<script>
export default {
   data () {
      return {
          id:localStorage.getItem('id'),
           dlist:'',
           token:localStorage.getItem('token'),
           //循环课程类
           list2:''
      };
   },

   methods: {
       //获取此用户的所有视频
       get_u:function(){
           this.axios.get(this.localhost+'get_course/?uid='+this.id+'&token='+this.token)
           .then(res=>{
            //    console.log(res);
               console.log(res.data.list1);
               this.dlist = res.data.data
               this.list2 = res.data.list2
           })
       },
    //    //查询cid相同的
    //    shijaio:function(cid){
    //        this.axios.get(this.localhost+'get_cid/?cid='+cid)
    //        .then(res=>{
    //            console.log(res.data);
    //        })
    //    }
   },

   computed: {},

   mounted() {
       this.get_u()
   },

   components: {}
}
</script>
<style lang='css' scoped>

</style>